<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>
    
    <title>My JSP 'list.jsp' starting page</title>
  </head>
  
  <body>
    <s:form action="show" method="post">
    	<table width="50%" align="center">
    		<tr>
    			<td align="center">userid</td>
    			<td align="center">username</td>
    			<td align="center">password</td>
    		</tr>
    		<s:iterator value="list" id="user" status="st">
    		<tr>
    			<td align="center"><s:property value="id"/></td>
    			<td align="center"><s:property value="username"/></td>
    			<td align="center"><s:property value="password"/></td>
    			<td align="center">
    				<s:url id="update" action="edit">
    					<s:param name="id">
    						<s:property value="id"/>
    					</s:param>
    				</s:url>
    				<s:a href="%{update}">update</s:a>
    			</td>
    			<td align="center">   
	            <s:url id="delete" action="delete">   
	               <s:param name="id">   
	               <s:property value="id" />   
	               </s:param>   
	            </s:url>    
	            <s:a href="%{delete}">delete</s:a>   
	            </td> 
    		</tr>	
    		</s:iterator>
    		<tr>   
                <td colspan="4">    
                    <s:property value="#request.pageBar" escape="false"/>   
                </td>   
        	</tr>
    	</table>
    	<%@ include file="page.jsp" %>
    </s:form>
  </body>
</html>
